import Router from 'vue-router'
import Home from '../components/Home.vue'
import Content from '../components/Content.vue'
import NotFoundComponent from '../components/NotFoundComponent.vue'

Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/home/:userId',
            name: 'home',
            component: Home
        },
        {
            path: '/content',
            name: 'content',
            component: Content
        },
        {
            path: '*',
            name:'notFound',
            component: NotFoundComponent
        }
    ]
})